<%@ page import="java.util.Calendar" %>
<%
    response.setHeader("Cache-Control", "cache");
    Calendar expireTime = Calendar.getInstance();
    //设定缓存时间为一天
    expireTime.add(Calendar.DATE, 1);
    response.setDateHeader("Expires", expireTime.getTimeInMillis());
%>